<div align="left">
<p>
  <c1>Login:</c1><%= link_to h(@user.login), @user %>
  <br>
  <c1>Email:</c1><%= @user.email %>
  <br>
  
  <p align="left"><subs>entries posted: <%=@user.entry_count%>
  comments posted: <%=@user.comment_count%>
  </subs></p>

<div align="center">
<p>
  
    <br><subs>entries posted: <%=@user.entry_count%>
  <br>comments posted: <%=@user.comment_count%>
  </subs>
  </p>
  <p>
    <%if @user.userpic.filename != nil%>
    <%= image_tag @user.userpic.public_filename, :border => '1', :width => '500' %>
          <%else%>
      <%= image_tag 'smiley.jpg', :border => '1' %>
      <%end%>
  </p>
</div>
  <% if @user.name != '' && @user.name != nil %>
    <c1>Name:</c1><%=h @user.name %><br>
  <% end %>
  <% if @user.age != nil %>
    <c1>Age:</c1><%=h @user.age %><br>
  <% end %>
  <% if @user.dob != '' && @user.dob != nil %>
    <c1>Date of Birth:</c1><%=h @user.dob %><br>
  <% end %>
  <% if @user.aim != '' && @user.aim != nil%>
    <c1>Screen Name:</c1><%=h @user.aim %><br>
  <% end %>
  <% if @user.interests != '' && @user.interests != nil %>
    <c1>Interests:</c1><%=h @user.interests %><br>
  <% end %>
  <% if @user.about_me != '' && @user.about_me != nil %>
    <c1>About Me:</c1><%=h @user.about_me %><br>
  <% end %>
  <% if @user.website != nil && @user.website != ''%>
    <c1>Website:</c1>
      <!--<iframe src ="<%#= @user.website %>" width="500" height="500">
      <p>Your browser does not support iframes.</p>
      </iframe>-->
      <a href="<%= @user.website %>"><%= @user.website %></a>
    <br>
  <% end %>
    <br>
<% if current_user.id == @user.id %>  
  <%= link_to 'edit user', edit_user_path(@user) %> |
<% end %>
  <%= link_to 'back to entries', entries_path %>
</p>
<br>&nbsp;
</div>
